import App from './App'
import Vue from 'vue'
import './uni.promisify.adaptor'
import './mixins/index'
import uView from '@/uni_modules/uview-ui'
import api from '@/api/index.js'
import toast from '@/utils/toast.js'
import store from '@/store/index.js'
Vue.use(uView)


Vue.prototype.$api = api
Vue.prototype.$msg = toast

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	store,
	...App
})

require('@/request/request.js')(app) // 引入请求封装，将app参数传递到配置中
app.$mount()